POV-Ray : Newsgroups : povray.general : It's not a christmas card : stereoscopic 3D with POV-Ray Server Time
10 Aug 2024 11:26:51 EDT (-0400)
  stereoscopic 3D with POV-Ray  
From: Harold Baize
Date: 29 Dec 1999 17:12:25
Message: <386a8749@news.povray.org>
Erick,
Stereoscopic imaging is the reason I got into POV-Ray. It is easy
to make a stereo (3D) pair. There are some complex formulae for
choosing how much separation to make between the left and right
rendering, but basically you can use the 1 to 30 rule, which states
that the left and right camera should be separated by 1 unit for
every 30 units between the camera and the nearest object (or main
object if the nearest object in small or unimportant). This rule
is based on the standard human eye separation (about 2.5 inches)
viewing something about six feet away. For the card image I used
something like this (I don't have the file here at the office):

// Left camera, render and save under a different name
camera

  location <-7.0,  5.0, -460>
  look_at  <-7.0,  0.0,  0.0>
}

// Right camera, render a second time
camera

  location < 7.0,  5.0, -460>
  look_at  < 7.0,  0.0,  0.0>
}

I this case I took into account that the fractal object was located at z*-40
so to get a 1:30 ratio the separation needed to be about 14 (420/30=14).
By moving the look_at with the camera you keep the cameras parallel, which
avoids keystone distortion.

However, you might be asking how did I make the red/blue anaglyph image from
the left and right image. Well, I used VRex's DepthCharge Developer Studio,
but it can be done easily with Photo Shop or Paint Shop Pro. It is easier to
do with Paint Shop Pro than with Photo Shop (IMHO). I can't give
you step by step instructions right now, but basically you open both images,
convert them to gray scale, separate the RGB color channels, then combine
the
Red channel from the left image with the Blue and Green from the right
image.
Then grab your red/blue (or maybe green) glasses and enjoy.

Harold

Erick <ejv### [at] wxsnl> wrote in message news:386a712d@news.povray.org...
> Harold,
>
> I had already admired your X-mas card. I just took a look with a red/green
> glasses, it's great.
>
> How did you manage to obtain the 3D view?
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.